home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / CAD / HPSRT08.ARJ / HPSORT.DOC < prev    next >
Text File  |  1991-03-30  |  64KB  |  1,804 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.                                         HPSORT
  14.  
  15.                            Pen Plotter Pen Motion Optimizer
  16.                                          and
  17.                                    File Compressor 
  18.                             for HPGL Compatibile Plotters
  19.  
  20.  
  21.  
  22.                                      CNT Software
  23.                                   1615 Highland Ave.
  24.                                 Janesville, Wis 53545
  25.  
  26.  
  27.                         Copywrite 1991.  All Rights Reserved.
  28.  
  29.  
  30.  
  31.  
  32.           Any trademarks metioned in this document are the property of
  33.           there respective companies.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.                                                                           1
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.                                   Table of Contents
  72.  
  73.  
  74.           1.0 Introduction  . . . . . . . . . . . . . . . . . . . . . .   3
  75.  
  76.           1.1 Will HPSORT work with my software?  . . . . . . . . . . .   3
  77.  
  78.           2.0 Legal Stuff . . . . . . . . . . . . . . . . . . . . . . .   4
  79.                2.1 Warranty . . . . . . . . . . . . . . . . . . . . . .   4
  80.                2.2 License  . . . . . . . . . . . . . . . . . . . . . .   5
  81.                2.3 Ordering Information . . . . . . . . . . . . . . . .   5
  82.  
  83.           3.0 Installation  . . . . . . . . . . . . . . . . . . . . . .   6
  84.                3.1 System Requirements  . . . . . . . . . . . . . . . .   6
  85.                3.1 Installation . . . . . . . . . . . . . . . . . . . .   6
  86.  
  87.           4.0 Configuration . . . . . . . . . . . . . . . . . . . . . .   6
  88.                4.1 Control Keys   . . . . . . . . . . . . . . . . . . .   7
  89.                4.2 Opening Configuration Menu . . . . . . . . . . . . .   8
  90.                     4.2.1 Edit Configuration Data . . . . . . . . . . .   9
  91.                     4.2.2  General Data Editing . . . . . . . . . . .    10
  92.                     4.2.3 Swapping Polylines to Disc  . . . . . . . .    16
  93.                     4.2.4 Label commands  . . . . . . . . . . . . . .    17
  94.                     4.2.5 Serial Input / Output Communication Parame-
  95.                          ters . . . . . . . . . . . . . . . . . . . .    20
  96.                     4.2.6  Disc Parameters  . . . . . . . . . . . . .    21
  97.                4.3 Default Settings . . . . . . . . . . . . . . . . .    23
  98.  
  99.           4.4 Sort / Compress . . . . . . . . . . . . . . . . . . . .    24
  100.                4.5 Save . . . . . . . . . . . . . . . . . . . . . . .    24
  101.                4.6 Quit . . . . . . . . . . . . . . . . . . . . . . .    24
  102.  
  103.           5.0 Operation . . . . . . . . . . . . . . . . . . . . . . .    24
  104.                5.1 Theory of Operation  . . . . . . . . . . . . . . .    25
  105.                5.2 HPSORT & Desqview  . . . . . . . . . . . . . . . .    26
  106.  
  107.           6.0 problems  . . . . . . . . . . . . . . . . . . . . . . .    26
  108.                6.1 Error Messages . . . . . . . . . . . . . . . . . .    26
  109.                6.2 Incompatibilities  . . . . . . . . . . . . . . . .    27
  110.                6.3 How to contact CNT Software  . . . . . . . . . . .    27
  111.  
  112.           Order Form  . . . . . . . . . . . . . . . . . . . . . . . .    28
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.                                                                           2
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.           1.0 Introduction
  134.  
  135.  
  136.           HPSORT sorts and compresses plot files for Hewlett Packard and
  137.           compatible pen plotters using the HPGL (Hewlett Packard Graphics
  138.           Language) language.  The sorting function initially analyzes the
  139.           plot file produced by a CAD package.  Then it creates a new file
  140.           of the same plot that saves 10% to 30% of the plotting time. 
  141.           While creating this file, HPSORT writes a "denser" sequence of
  142.           instructions reducing the file to about 50% to 60% of it's
  143.           original size.
  144.  
  145.           For those persons communicating with a plotting service bureau,
  146.           the output files may be automatically compressed using PKZIP, ARC
  147.           or other similar program.  The resulting output files are typic-
  148.           ally be 15% of original file size.  Service bureau's will supply
  149.           compression program information to use.
  150.  
  151.                How does HPSORT perform this magic on the plot files?  
  152.  
  153.           Most CAD packages do not sort plotter files for minimum pen
  154.           motion and plot time.  They typically create the plot in the
  155.           order that the operator created the file.  Most CAD packages do
  156.           not optimize pen motion because this procedure requires a sig-
  157.           nificant amount of processing time and RAM memory in the proces-
  158.           sor.  
  159.  
  160.           HPSORT works well with software that are capable of producing
  161.           HPGL plot files.  It will be a judgement call for each user if
  162.           the benefits of HPSORT are worth the computing time costs.  It
  163.           will depend on the size of the plot files, the speed of your
  164.           plotter and the speed of your computer.  
  165.  
  166.           1.1 Will HPSORT work with my software?
  167.  
  168.           HPSORT does not work equally well with all software that is
  169.           capable of generating a plot file.  It is optimized to work with
  170.           those instructions that are commonly used by CAD and other
  171.           Graphics software.  
  172.  
  173.           Most of these packages only use a subset of the full instruction
  174.           set available.  It is this instruction set the HPSORT uses.  For
  175.           instructions outside of this subset, HPSORT outputs all of the
  176.           data it has read in, then copies that instruction to the output. 
  177.           It then begins the sorting the rest of the input file.
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.                                                                           3
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.           HPSORT does not work the following two types of software:
  193.  
  194.             o  If the software does a lot of pen changing,  HPSORT probably
  195.                will not work very well (although try it).
  196.  
  197.             o  It does not work with Microsoft Windows 3.x.  Microsoft uses
  198.                features of the HPGL language that work with the plotters,
  199.                but are contrary to the documentation in HP's manuals. 
  200.                HPSORT does not understand the syntax as of yet.
  201.  
  202.           Future versions will correct these exceptions.
  203.  
  204.           For a list of software the HPSORT works with, run the config-
  205.           uration utility HP_CFG.  If the list does not contain your
  206.           software, try using the generic settings.  For well behaved pack-
  207.           ages, you should have no problems.  Either way, if either it
  208.           works or not, please let the author know of your experience.  We
  209.           will update the list of packages.
  210.  
  211.           If it does not,  it is usually a very simple thing to correct
  212.           (and I will).  Refer to Section 6.3 of this document on how to
  213.           contact the author.  If HPSORT does not work, we would appreciate
  214.           getting a sample of your more complicated drawings to test rather
  215.           than just a single drawing.
  216.  
  217.  
  218.           2.0 Legal Stuff
  219.  
  220.  
  221.           2.1 Warranty
  222.  
  223.           The CNT Software makes no warranty of any kind, express or
  224.           implied,including without limitation, any warranties of merchan-
  225.           tability and/or fitness for a particular purpose.  CNT Software
  226.           shall not be liable for any damages, whether direct, indirect,
  227.           special or consequential arising from a failure of this program
  228.           to operate in the manner desired by the user.  CNT Software shall
  229.           not be liable for any damage to data or property which may be
  230.           caused directly or indirectly by the use of this program.
  231.  
  232.                IN NO EVENT WILL CNT SOFTWARE BE LIABLE TO YOU FOR ANY
  233.                DAMAGES, INCLUDING ANY LOST PROFITS, LOST SAVINGS OR
  234.                OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES A RISING OUT
  235.                OF YOUR USE OR INABILITY TO USE THE PROGRAM, OR FOR ANY
  236.                CLAIM BY ANY OTHER PARTY.
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.                                                                           4
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.           2.2 License
  254.  
  255.           HPSORT is not, and has never been in the Public Domain.  HPSORT
  256.           is not free.
  257.  
  258.           Non-registered users are granted a limited, 90-day  license to
  259.           determine whether or not the program meets their needs.  Con-
  260.           tinued use of HPSORT beyond the 90-day evaluation time period
  261.           requires registration of the program.  Use of non-registered
  262.           copies of HPSORT beyond the original evaluation period is strict-
  263.           ly prohibited.
  264.  
  265.           Copying and distributing HPSORT to others, is subject to the
  266.           above restrictions and the following:
  267.  
  268.                o    HPSORT must be copied in unmodified form, including the
  269.                     file containing this license information.
  270.  
  271.                o    No copying fee of any type may be assessed other than
  272.                     basic charges for the cost of the copying medium.
  273.  
  274.                o    Distribution of HPSORT  with any other software or
  275.                     hardware product(s) without the express written permis-
  276.                     sion of CNT Software.
  277.  
  278.                o    Sysops (bulletin board SYStem Operators) may make
  279.                     HPSORT available for downloading by their users as long
  280.                     as all above conditions are met.  
  281.  
  282.                o    Commercial Distributors of Public Domain, Shareware, or
  283.                     User-Supported software may distribute HPSORT subject
  284.                     to the above conditions only after getting written
  285.                     permission from CNT Software and filling out a regis-
  286.                     tration form for upgrade notifications.  
  287.  
  288.           2.3 Ordering Information
  289.  
  290.           When you register your copy of HPSORT, you are granted a license
  291.           to use the program as you desire.  There are several advantages
  292.           to registering your copy of HPSORT:
  293.  
  294.                o    Copy of the latest version of HPSORT
  295.                o    Printed Manual
  296.                o    E-Mail Support   No problem is too big or small, but
  297.                     you must be a registered user to get support.
  298.                o    Notification of major releases with reduced upgrade
  299.                     costs.
  300.                o    You are contributing towards user supported software.
  301.  
  302.           To register HPSORT, please send the completed registration form
  303.           at the end of this document.
  304.  
  305.  
  306.                                                                           5
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.           3.0 Installation
  315.  
  316.  
  317.           3.1 System Requirements
  318.  
  319.                o    HPSORT requires an IBM PC,XT,AT,PS/2 or IBM
  320.                     compatible computer with at least 384K RAM.
  321.                o    Math coprocessor is highly recommended.  A 12mhz 286 
  322.                     287 processor combination will preform equal to a 25mhz
  323.                     386 processor without a coprocessor.
  324.  
  325.  
  326.           3.1 Installation 
  327.  
  328.  
  329.           HPSORT is distributed with the following files -
  330.  
  331.                o    README.HST     Read me first file
  332.                o    HPSORT.EXE     Sorting and Compression Program
  333.                o    HP_CFG.EXE     Configuration Program for HPSORT
  334.                o    HPSORT.HLP     Help file for HP_CFG.EXE
  335.                o    HPSORT.DOC     This document
  336.  
  337.           Any missing files constitutes an incomplete copy.
  338.  
  339.           Copy the files into either a separate directory or the current
  340.           CAD program's directory on your hard drive.
  341.  
  342.           Run HP_CFG  to create the configuration file (HPSORT.CFG) that
  343.           HPSORT requires for execution.  The configuration file can either
  344.           be in the same directory as HPSORT or your current directory.  
  345.  
  346.           It is possible to have multiple configurations for different
  347.           applications.  Do this by copying the "master" or "initial"
  348.           configuration file into the directory of the current application. 
  349.           While in this directory, run HP_CFG to edit the parameters.
  350.  
  351.           4.0 Configuration
  352.  
  353.           HP_CFG is the configuration utility for HPSORT.  This config-
  354.           uration program "tunes" HPSORT to your preferences.  It stores
  355.           your choices in the file HPSORT.CFG.   This configuration file
  356.           can be anywhere on your system as long as it is either in the
  357.           current directory or in a directory listed in the path.
  358.  
  359.           All screens contain two status lines that appear on lines 23 and
  360.           25 of the display.  Line 23 is a message that explains the menu
  361.           option or the data field that the cursor is at.  Line 25 is the
  362.           current "sort & compress" or "compress only" mode (see section
  363.           4.4).
  364.  
  365.  
  366.  
  367.                                                                           6
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.           4.1 Control Keys 
  376.  
  377.           HP_CFG uses the following control keys:
  378.  
  379.           Arrow Keys Moves the cursor between different menu or data items.
  380.  
  381.           BACKSPACE Deletes the character to the left of the cursor and
  382.                     moves the cursor one space to the left.
  383.  
  384.           DELETE    When editing data, deletes the character the cursor is
  385.                     on.
  386.  
  387.           ENTER     When on a menu item, it executes the item.  When on a
  388.                     data field, stores that data in the field, then moves
  389.                     the cursor to the next field.  
  390.  
  391.           ESC       Exits the active data, help or menu screen.
  392.  
  393.           F1        Displays a help message.
  394.  
  395.           INSERT    Toggles Insert Mode.  In insert mode, characters are
  396.                     inserted at the current cursor location.  Any trailing
  397.                     characters are pushed to the right and may be pushed
  398.                     out of the field and lost.
  399.  
  400.           PAGE UP   Used on help screens to look at the previous page.
  401.  
  402.           PAGE DOWN Used on help screens to look at the next page.
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.                                                                           7
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.           4.2 Opening Configuration Menu
  438.  
  439.           Start this program  by typing HP_CFG and pressing the ENTER key
  440.           from the DOS prompt.
  441.  
  442.           After the HP_CFG opening screen, the following screen will
  443.           appear:
  444.  
  445.  
  446.  
  447.             ┌───────────────HPSORT Configuration Menu─────────────────┐
  448.             │Edit  Default  Sort  Compress  Save  Quit                │
  449.             └─────────────────────────────────────────────────────────┘
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.             Select Data to Edit
  458.  
  459.             Sort and Compress Output
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.           This is the primary menu.  Use the arrow keys, to select the
  467.           desired option, then press ENTER.  
  468.  
  469.           Warning:  Pressing ESC key from this menu causes HP_CFG
  470.                     to abort to MS-DOS.  Changes are not saved.
  471.  
  472.           EDIT      This selects a menu that permits editing of the para-
  473.                     meters. Refer to Page #8
  474.  
  475.           DEFAULT   For the listed CAD packages, HP_CFG can preconfigure
  476.                     most parameters for you.  This option selects the menu
  477.                     that chooses which package.
  478.  
  479.           SORT      Configures HPSORT to sort and compress plot files. 
  480.                     This is the default mode.
  481.  
  482.           COMPRESS  Configures HPSORT to compress a plot file.  The out-
  483.                     putted file is not an exact representation of the input
  484.                     file.  HPSORT draws text using the built in plotter
  485.                     fonts and lines separately.
  486.  
  487.  
  488.  
  489.                                                                           8
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.           SAVE      Saves the configuration to file HPSORT.CFG in the
  498.                     current directory.
  499.  
  500.           QUIT      Exits HP_CFG without performing a save.
  501.  
  502.  
  503.           4.2.1 Edit Configuration Data
  504.  
  505.           After selecting EDIT on the opening menu, the following menu will
  506.           appear:
  507.  
  508.  
  509.             ┌────────────HPSORT Configuration Menu────────┐
  510.             │Edit  Default  Sort  Compress  Save  Quit    │
  511.             ┌───────────────┐─────────────────────────────┘
  512.             │General Data   │
  513.             │Swap File      │
  514.             │Labels         │
  515.             │Serial Port    │
  516.             │Disc Parameters│
  517.             └───────────────┘
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.           Options are
  527.  
  528.  
  529.           General Data   Controls the processing of lines.  Adjust entries
  530.                          here with care.
  531.  
  532.           Swap File      HPSORT can use a disc to expand its sorting capa-
  533.                          city.
  534.  
  535.           Labels         Controls drawing of text using the built in plot-
  536.                          ter fonts.
  537.  
  538.           Serial Port    Controls how HPSORT buffers and/or configures COM
  539.                          ports.
  540.  
  541.           Disc Parameters Controls miscellaneous disc and compression op-
  542.                          tions.
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.                                                                           9
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.           4.2.2  General Data Editing
  559.  
  560.           These parameters control how the HPSORT draws lines, arcs and
  561.           circles.  They can directly affect plot quality, so adjust values
  562.           with care.
  563.  
  564.  
  565.  
  566.             ╔══════════════HPSORT Vector Parameter Setting══════════════╗
  567.             ║                                                           ║
  568.             ║Near Zero Move Delta......  0.010mm                        ║
  569.             ║Pen Width Move Delta......  0.030mm                        ║
  570.             ║Short Near Zero Length.....   5.00mm                       ║ 
  571.             ║Max. Numb Relative Moves.    5                             ║
  572.             ║Circle Check Radius.......  5.000mm                        ║
  573.             ║Max. Relative Move.......  16000                           ║
  574.             ║  The following two lines are primarily for persons using  ║
  575.             ║  ORCAD.  This has to do with how dashed lines are         ║
  576.             ║  implemented.  Refer to the manual for proper settings.   ║
  577.             ║                                                           ║
  578.             ║Line Type Divider.........  3.500                          ║
  579.             ║Ignore IP Commands..Y/N...  YES                            ║
  580.             ║                                                           ║
  581.             ║                                                           ║
  582.             ╚═══════════════════════════════════════════════════════════╝
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.           Parameters
  593.  
  594.           Near Zero Move Delta
  595.  
  596.                This parameter drops unnoticeable short moves.  It controls
  597.                the pen motion from the end of one vector to the start of
  598.                the next.  The parameter states: 
  599.  
  600.                     When the end of the vector just drawn is closer
  601.                     than this distance from the starting point of the
  602.                     next vector, the pen will not move to the starting
  603.                     point of the next vector.
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.                                                                          10
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.                As an example consider the following sequence:
  620.  
  621.                a.   Move with pen up to position #1.
  622.                b.   Lower the pen and draw a line from point #1 to #2.
  623.                c.   Raise the pen up and move to position #3.
  624.                d.   Lower the pen and draw a line from point #3 to #4.
  625.  
  626.                The two lines from #1 to #2
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.                                              Example Plot of Two Lines
  634.                                              Close Together#1--------------------#2
  635.                                                      
  636.  
  637.                                                                           
  638.                                                                 #4---#3and from #3 to #4 would be
  639.                drawn as shown in figure to
  640.                the right.
  641.  
  642.                This is how they will appear
  643.                when the distance from
  644.                Points #2 to #3 is larger
  645.                than this parameter.
  646.  
  647.  
  648.  
  649.                When the distance between points #2 and #3 is less than or
  650.                equal to this parameter, then above example would generate
  651.                the following sequence:
  652.  
  653.                a.   Move with pen up to position #1.
  654.                b.   Lower the pen and draw a line from point #1 to #(2&3).
  655.                d.   Lower the pen and draw a line from point #(2&3) to #4.
  656.  
  657.                Note in figure to right
  658.                                           #1-------------------+#(2&3)
  659.                                                               /
  660.                                                              /
  661.                                                             #4that a single point
  662.                replaces points #2 and
  663.                #3.  This effect
  664.                noticed on parallel
  665.                lines drawn close
  666.                together, but still
  667.                separate.
  668.                 
  669.                Typical value is 1/10 smallest pen size used.  For 0.35mm
  670.                pen would be 0.035mm.  Range is 0 to 1.5mm.
  671.  
  672.           Pen Width Move Delta
  673.  
  674.                This parameter removes pen up/down motions that are so short
  675.                that they are unnoticeable.  Plotting speed is increased
  676.                because the pen is not lifted as much.  HPSORT does this by
  677.                drawing a line between the two points that should not be
  678.                there.   When this parameter is set correctly, the line is
  679.                unnoticeable.   This parameter says: 
  680.  
  681.                     When the end of the vector just drawn is closer
  682.                     than this distance from the starting point of the
  683.                     next vector, a line  connects the points without
  684.                     the pen lifting from the paper.
  685.  
  686.                                                                          11
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.                As an example consider the following sequence:
  695.  
  696.                a.   Move with pen up to position #1.
  697.                b.   Lower the pen and draw a line from point #1 to #2.
  698.                c.   Raise the pen up and move to position #3.
  699.                d.   Lower the pen and draw a line from point #3 to #4.
  700.  
  701.                The two lines from #1 to #2
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.                                              Example Plot of Two Lines
  709.                                              Close Together#1--------------------#2
  710.                                                      
  711.  
  712.                                                                           
  713.                                                                 #4---#3and from #3 to #4 would be
  714.                drawn as shown in figure to
  715.                the right.
  716.  
  717.                This is how they will appear
  718.                when the distance from
  719.                Points #2 to #3 is larger
  720.                than this parameter.
  721.  
  722.                When the distance between
  723.                points #2 and #3 is less than or equal to this parameter,
  724.                then above example would generate the following sequence:
  725.  
  726.                a.   Move with pen up to position #1.
  727.                b.   Lower the pen and draw a line from point #1 to #2.
  728.                c.   Lower the pen and draw a line from point #2 to #3.
  729.                d.   Lower the pen and draw a line from point #3 to #4.
  730.  
  731.                The figure to right is how
  732.                                                #1-------------------+#2
  733.                                                                     | 
  734.                                                                     |
  735.                                                                     |     
  736.                                                                #4---+#3the above example would be
  737.                drawn.  Note the line
  738.                appearing between points #2
  739.                and #3 that was not in the
  740.                original sequence.
  741.  
  742.                Typical values are 1/2 to
  743.                1/4 smallest pen size used.  
  744.                 Range is 0 to 1.5mm.
  745.  
  746.           Short Near Vector Length
  747.  
  748.                Before sending a vector to the output device, HPSORT checks
  749.                to see if a "short" vector touches it.  If yes, then HPSORT
  750.                draws the "short" vector first.  Range is 0 to 99.99mm, with
  751.                5 to 10mm being a good value.  If this value is too large,
  752.                it is counter productive towards sorting.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.                                                                          12
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.                Consider the lines in the
  771.                                             #1
  772.                                               \
  773.                                                \
  774.                                                 \
  775.                                               #2 +--------------------#3figure to the right.
  776.                During the sorting
  777.                process,  HPSORT decides
  778.                the next line to draw is
  779.                from points #2 to #3.
  780.  
  781.                This parameter instructs
  782.                HPSORT to check to see if
  783.                a "short" line is connected to the line about to be drawn. 
  784.                In this case, it is the line from points #1 to #2.  If the
  785.                length of the line from points #1 to #2 is less than or
  786.                equal to the value of this parameter, then HPSORT will
  787.                output the following sequence:
  788.  
  789.                a.   Move with the pen up to position #1.
  790.                b.   Lower the pen and draw a line from point #1 to #2.
  791.                c.   Lower the pen and draw a line from point #2 to #3.
  792.  
  793.  
  794.           Maximum Number of Relative Moves
  795.  
  796.                HPSORT uses primarily "relative" positioning.  This is one
  797.                of the major techniques used to reduce file size.  In this
  798.                mode, each pen move is the delta x, delta y from the end of
  799.                the last pen move.  When positioning in relative mode, this
  800.                parameter controls how often an absolute positioning command
  801.                is issued to correct for any positioning errors in the
  802.                plotter.
  803.  
  804.                       What is "absolute" and "relative" positioning?
  805.  
  806.                Absolute positioning is where each command tells the plotter
  807.                exactly where to position the pen on the paper independent
  808.                of any other move.  Therefore, the pen is always in the
  809.                position where the CAD program expects it to be.  An example
  810.                would be -
  811.  
  812.                     Move Pen Up to 1000,1000
  813.                     Place Pen Down
  814.                     Move to 1400,1000
  815.                     Move to 1400,1400
  816.                     Move to 1000,1400
  817.                     Move to 1000,1000
  818.  
  819.                The numbers are in plotter units and draw a square 1 cm on a
  820.                side.
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.                                                                          13
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.                 Using the same example as above, HPSORT would output 
  836.  
  837.                     Move Pen Up to 1000,1000 in absolute mode
  838.                     Place Pen Down
  839.                     Shift to relative mode 
  840.                     Move right 400 units
  841.                     Move up 400 units
  842.                     Move left 400 units
  843.                     Move down 400 units
  844.  
  845.                Notice that in the relative example, there is only one
  846.                command to tell the plotter exactly where to move.  The rest
  847.                of the commands are move left, right, up or down commands. 
  848.                They assume that the plotter pen is where it is suppose to
  849.                be.  Due to cumulative errors in both calculations and
  850.                mechanical positioning in the plotter, every once in a
  851.                while, a absolute positioning command must be done. 
  852.  
  853.                The larger this parameter, the more the file size is
  854.                reduced.  But the larger the chance of plotting errors. 
  855.                Legal values range from 2 to 999.  Values of 5 to 20 are
  856.                effective.
  857.  
  858.           Check Circle Radius
  859.  
  860.                Circles are a special case when compared to all of the other
  861.                types of line drawing commands.  When at a start or end of a
  862.                line, HPSORT checks to see if a circle is either touching or
  863.                centered on the current position.  If yes, then send the
  864.                circle to the output device.  
  865.  
  866.                This parameter controls how close the circle be in order to
  867.                be checked.  If it is too small, HPSORT misses the circle
  868.                during the normal processing and is outputted during the
  869.                cleanup phase.  If it is too large, then it will slow down
  870.                normal vector processing by needlessly checking too many
  871.                circles.  A good value is dependant upon the average circle
  872.                size.  Range of legal values is 0.01 to 99.99mm.  Values of
  873.                5 to 10mm are effective.
  874.  
  875.                If HPSORT draws too many circles during the cleanup phase of
  876.                the processing, try increasing this value.
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.                                                                          14
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.           Max. Relative Move
  897.  
  898.                This defines the maximum move size in relative mode in
  899.                plotter units.  Some plotters ignore large relative moves,
  900.                such as the HP 7450 DraftPro.  For moves larger than this
  901.                parameter,  HPSORT uses absolute moves instead of relative
  902.                moves.  For most plotters, 16,000 is a good value. 
  903.  
  904.           Line Type Divider
  905.  
  906.                When not using ORCAD, set value to 1.00.
  907.  
  908.                The method ORCAD uses to draw dashed lines is not compatible
  909.                with the internal structure HPSORT uses to represent draw-
  910.                ings internally.  See "Ignore IP Command" (next parameter)
  911.                for details.  This parameter is a compromise that scales the
  912.                "dash" in the dashed line to fit the paper.  Values are
  913.                dependant upon the normal drawing size:
  914.  
  915.                                     Paper Size   Value
  916.                                     ----------   -----
  917.                                      A to B       1.5
  918.                                      B to C       2.5
  919.                                      C to D       3.5
  920.                                      D to E       4.5
  921.                                      B to D       3.0
  922.  
  923.           Ignore IP Command
  924.  
  925.                When not using ORCAD, set value to NO.  
  926.  
  927.                The IP is the "Input P1 and P2" command.  This permits the
  928.                computer to redefine the meaning of P1 and P2 (refer to the
  929.                plotter manual for definition of P1 and P2).
  930.  
  931.                The method ORCAD uses to output dashed lines is different
  932.                other packages.  The HP plotter language defines dashed
  933.                lines is as a percentage of the distance from the opposite
  934.                corners of the paper.  ORCAD, "redefines" the corners of the
  935.                paper, using the "IP" command to an "A" size drawing, draws
  936.                the dashed line and then redefines the paper size back to
  937.                normal.
  938.  
  939.                Normally, when HPSORT finds an IP command, it outputs the
  940.                contents of the label and vector buffers, then outputs the
  941.                IP command.  ORCAD uses this command for dashed lines. This
  942.                stops the pen motion optimization process whenever dashed
  943.                lines are encounter.  When using ORCAD, set value to YES.
  944.  
  945.  
  946.  
  947.  
  948.  
  949.                                                                          15
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.           4.2.3 Swapping Polylines to Disc
  958.  
  959.           This option controls how HPSORT handles a series of connected
  960.           lines (polylines)1  When these polylines are found, the only
  961.           where the starting and ending points are needs to be stored.  The
  962.           rest of the information can be stored elsewhere while the program
  963.           is running.  If this information is swapped to the disc, HPSORT's
  964.           effective capacity is increased.
  965.  
  966.           If more than 4,000 vectors on a machine with 450k or more of free
  967.           RAM memory are normally processed in a single pass by HPSORT,
  968.           then these parameters will aid in performance.
  969.  
  970.           When this option is selected, the following edit screen will
  971.           appear -
  972.  
  973.  
  974.             ╔═════════════════Vector Buffering to Disc══════════════════╗
  975.             ║                                                           ║
  976.             ║Swap Polylines to Disc................Y/N. YES             ║
  977.             ║                                                           ║
  978.             ║Collapse Rectangles to Single Command.Y/N. NO              ║
  979.             ║                                                           ║
  980.             ║       -----------  Swapping Options  --------------       ║
  981.             ║Drive to swap to.................  C                       ║
  982.             ║Swapping Threshold...............  005                     ║
  983.             ║Print Swapping Statistics....Y/N.  NO                      ║
  984.             ║                                                           ║
  985.             ║                                                           ║
  986.             ║                                                           ║
  987.             ╚═══════════════════════════════════════════════════════════╝
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.           Swap Polylines to Disc
  996.  
  997.                This parameter enables the rest of the options on this
  998.                screen.  If YES, the swapping is enabled.
  999.  
  1000.                Electrical schematics usually do not benefit significantly
  1001.                from this option.  Mechanical drawings, particular drawings
  1002.                by AUTOCAD, and PCB Layouts benefit significantly by setting
  1003.                this parameter to YES.
  1004.  
  1005.                                    
  1006.  
  1007.                1    In HPSORT, a polygon can be either close line a rec-
  1008.                     tangle or open like the line segments in the letter M.
  1009.  
  1010.                                                                          16
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.           Collapse Rectangles to Single Command
  1019.  
  1020.                Set to NO.  Current version does not support this option.
  1021.  
  1022.  
  1023.           Drive to Swap To
  1024.  
  1025.                Letter of the drive to use for buffering to disc.  HPSORT
  1026.                uses the current drive and directory if this field is blank. 
  1027.                If more than one hard drive is available, use the fastest
  1028.                one available.
  1029.  
  1030.                If a RAAM drive is present, size of 400kb is usually enough. 
  1031.                If running from a network, using the local hard drive will
  1032.                give better performance rather that a drive on the file
  1033.                server.
  1034.  
  1035.           Swapping Threshold
  1036.  
  1037.                This sets the minimum number of connected line segments
  1038.                before swapping them to the disc.  Swapping all connected
  1039.                segments does not significantly give a better sort, but can
  1040.                have a significant increase in plotting time.   A good value
  1041.                is one that is slightly less than the average number of
  1042.                connected segments.  For a starting value, 5 works well. 
  1043.                Range of values is 1 to 999.
  1044.  
  1045.           Print Swapping Statistics
  1046.  
  1047.                This parameter turns on the printing of the swapping statis-
  1048.                tics.  These statistics are useful in adjusting the other
  1049.                parameters towards optimal values.
  1050.  
  1051.  
  1052.           4.2.4 Label commands
  1053.  
  1054.           These parameters control how HPSORT handles text plotted with the
  1055.           built in plotter fonts2.  The HPGL documentation refer to this
  1056.           as a label command.  One of the first questions that you should
  1057.           ask is "Does my CAD program use built in fonts?".  HP_CFG knows
  1058.           the correct settings for those CAD programs listed in the Default
  1059.           option (see section 4.3) on the opening menu.  
  1060.  
  1061.           If your program was not listed in the default settings, HPSORT
  1062.           can make the determination.  Set the "Label Commands Processed"
  1063.           parameter to NO.  If HPSORT finds a label command, HPSORT will
  1064.           exit with a configuration error.  Set the parameter to YES then. 
  1065.  
  1066.                               
  1067.  
  1068.                2    What is a font.  Font is the term used to describe the
  1069.                     shape of the letters as they are drawn.
  1070.  
  1071.                                                                          17
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.           Then set the "Print Labels Stats" command to yes to determine the
  1080.           correct buffer sizes.
  1081.  
  1082.             ╔══════════════════HPSORT Label Parameters══════════════════╗
  1083.             ║                                                           ║
  1084.             ║Label Commands Processed.....Y/N..... YES                  ║
  1085.             ║Ignore Single Space Labels...Y/N..... YES                  ║
  1086.             ║Print Labels Stats...........Y/N..... NO                   ║
  1087.             ║Map Font 0 to Font 99........Y/N..... YES                  ║
  1088.             ║                                                           ║
  1089.             ║    --- Relative Label Positioning Commands ---            ║
  1090.             ║Position Labels in Relative Mode..Y/N. YES                 ║
  1091.             ║Max Number Relative Moves............. 20                  ║
  1092.             ║                                                           ║
  1093.             ║               ------- Label Buffer Sizes --------         ║
  1094.             ║Max Number Labels in Memory at one time..... 1000          ║
  1095.             ║Max kb to store labels...................... 48            ║
  1096.             ║                                                           ║
  1097.             ║                                                           ║
  1098.             ╚═══════════════════════════════════════════════════════════╝
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.           Label Commands Processed
  1106.  
  1107.                This flag controls how HPSORT supports the Label command. 
  1108.                There are two methods of printing text on a drawing.  Pro-
  1109.                grams such as AUTOCAD, output all text as a series of line
  1110.                segments.  This permits the program to support a variety of
  1111.                fonts.  Some programs such as ORCAD or SCHEMA, use only
  1112.                those fonts built into the plotter.  Some programs such as
  1113.                Point Line CADD, use both methods.  
  1114.  
  1115.                Setting this parameter to NO effectively increases the
  1116.                amount of memory available for sorting lines.
  1117.  
  1118.           Ignore Single Space Labels
  1119.  
  1120.                If the CADD program is try to plot a single space character
  1121.                using the built in plotter fonts, ignore the command.  This
  1122.                parameter normally should be to YES.  
  1123.  
  1124.           Print Label Stats
  1125.  
  1126.                This parameter turns on the printing of the labels statis-
  1127.                tics.  These statistics are useful in adjusting the other
  1128.                parameters towards optimal values.
  1129.  
  1130.  
  1131.  
  1132.                                                                          18
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.           Map Font 0 to Font 99
  1141.                This parameter when YES will change the appearance of some
  1142.                or all the text on your drawing for those CAD programs that
  1143.                use the built in plotter fonts.  Normally font 0 is used. 
  1144.                While this font is okay, the 5, 6 & S and 8 & B characters
  1145.                are difficult to tell apart.  HPSORT can substitute plotter
  1146.                font 99 which is designed to make telling these characters
  1147.                apart easier.  
  1148.  
  1149.           Position Labels in Rel Mode 
  1150.  
  1151.                This parameter controls positioning of labels using relative
  1152.                instead of absolute positioning.  For a discussion on the
  1153.                difference between the positioning mode, refer to "Maximum
  1154.                Number of Relative Moves" on page #? for more details. This
  1155.                results in smaller output files.  
  1156.  
  1157.           Max Number Relative Moves
  1158.  
  1159.                When positioning labels in relative mode, this controls how
  1160.                often an absolute positioning command is issued to correct
  1161.                for any positioning errors in the plotter.
  1162.  
  1163.                The net effect of this parameter is that the larger the
  1164.                value, the more the file size compression, but the larger
  1165.                the chance of plotting errors.  Legal values range from 2 to
  1166.                999.  Values of 5 to 20 are effective.
  1167.  
  1168.           Max Number Labels in Memory at one time
  1169.  
  1170.                This is the maximum number of labels to reserve space for
  1171.                before outputing the buffer.  Use label statistics to deter-
  1172.                mine a good value.  If the maximum value printed on the
  1173.                stat's is "close" to the current value, try increasing this
  1174.                value by 10%.  Range of values are 30 to 2,0000.
  1175.  
  1176.           Max kb to store labels
  1177.  
  1178.                Number of kilobytes of memory to reserve for the to store
  1179.                the actual text of the labels.  Range of values is 3 to 64. 
  1180.                Use label statistics to determine a good value.  If the
  1181.                maximum value printed on the stat's is "close" to the cur-
  1182.                rent value, try increasing this value by 10%.
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.                                                                          19
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.           4.2.5 Serial Input / Output Communication Parameters
  1202.  
  1203.  
  1204.           HPSORT has full control over serial ports.  HPSORT can set all of
  1205.           the serial port parameters without the use of the DOS MODE
  1206.           command.  
  1207.  
  1208.           HPSORT has a simple built in spooler to the serial port.  This
  1209.           permits HPSORT to output to a plotter while performing it's
  1210.           calculations.  
  1211.  
  1212.           When you select this option, the following edit screen will be
  1213.           displayed:
  1214.  
  1215.  
  1216.  
  1217.             ╔═══════════════HPSORT Serial Port Parameters═══════════════╗
  1218.             ║                                                           ║
  1219.             ║Buffer Serial Output..............Y/N. NO                  ║
  1220.             ║Buffered Serial Output Buffer Size.... 32kb                ║
  1221.             ║                                                           ║
  1222.             ║----------  Serial Communication Parameters ------------   ║
  1223.             ║Have HPSORT set serial parameters.Y/N.. NO                 ║
  1224.             ║Word size.............................. 8                  ║
  1225.             ║Baud Rate.............................. 9600               ║
  1226.             ║Parity 0-NONE  1-EVEN, 2-ODD........... NONE               ║
  1227.             ║Number Stop Bits (1 or 2).............. 1                  ║
  1228.             ║                                                           ║
  1229.             ║                                                           ║
  1230.             ╚═══════════════════════════════════════════════════════════╝
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.           Buffered Serial Output
  1237.  
  1238.                HPSORT contains a simple serial port spooling program when
  1239.                the output device is either COM1, COM2, COM3 or COM4.  This
  1240.                exists so  if you do not already have a spooling program on
  1241.                your system, HPSORT can send data to the plotter while it is
  1242.                processing.  
  1243.  
  1244.                There are two restrictions on this function:
  1245.  
  1246.                1 -  The plotter must use the hardware same style of
  1247.                     handshaking as used by MS-DOS.  If you can copy your
  1248.                     file to the plotter using the MS-DOS "COPY" command,
  1249.                     there will be no problems with the built in spooler. 
  1250.  
  1251.                2 -  HPSORT will not exit until the plotter has received all
  1252.                     of the data.
  1253.  
  1254.                                                                          20
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.           Buffered Serial Output Buffer Size
  1263.  
  1264.                When enabling the serial port buffering, this is the number
  1265.                of kilobytes of memory to reserve.   Value can be from 3kb
  1266.                to 32kb.
  1267.  
  1268.           Have HPSORT set serial parameters
  1269.  
  1270.                This parameter has meaning only when the output file is
  1271.                either COM1, COM2, COM3 or COM4.  When this parameter is 
  1272.                NO, HPSORT does not change the parameters from when it 
  1273.                begins.  If YES, then the parameters are set to the
  1274.                parameters in this section.
  1275.  
  1276.           Word Size
  1277.  
  1278.                Number of bits in each data byte sent.  Must be the same as
  1279.                the plotter.  Normally, will be 8, but can be 7.
  1280.  
  1281.           Baud Rate
  1282.  
  1283.                Baud Rate to set serial port to.  Must be  the same value as
  1284.                the plotter.  Legal values are only those values displayed.
  1285.  
  1286.  
  1287.           Parity 0-NONE  1-EVEN, 2-ODD
  1288.  
  1289.                Can be only one of the three values listed in the options
  1290.                menu.  Must be the same value as the plotter.
  1291.  
  1292.           Number Stop Bits (1 or 2)
  1293.  
  1294.                Legal values are 1 or 2.  Must be the same value as the
  1295.                plotter. Normally, will be 1 unless sending at 110 baud.
  1296.  
  1297.  
  1298.           4.2.6  Disc Parameters
  1299.  
  1300.           HPSORT has two groups of parameters that control the output file
  1301.           name.  The first group has to do with the default output file
  1302.           name.  These are the first two parameters.
  1303.  
  1304.           The second is to automatically invoke the file compression
  1305.           program of your choice.  For those users that communicate with a
  1306.           plotting service bureau, HPSORT can automatically invoke your
  1307.           compression program. 
  1308.  
  1309.           When you select this option, the following edit screen will be
  1310.           displayed:
  1311.  
  1312.  
  1313.  
  1314.  
  1315.                                                                          21
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.             ╔═════════════════HPSORT Disc I/O Parameters════════════════╗
  1325.             ║Default Output File Name..................HPSORT.OUT       ║
  1326.             ║Rename Output file to Input file name.Y/N.YES              ║
  1327.             ║                                                           ║
  1328.             ║If you use data compression programs to shrink the size of ║
  1329.             ║the plot files before they are sent to a plotting service  ║
  1330.             ║bureau, HPSORT can automatically invoke your favorite      ║
  1331.             ║compression program.  Please refer to the manual for full  ║
  1332.             ║details as to how to use this option.                      ║
  1333.             ║                                                           ║
  1334.             ║                                                           ║
  1335.             ║Add Output File to Compressed file........Y/N.. NO         ║
  1336.             ║Compression File Name (must be pathed in)......            ║
  1337.             ║Compression File Program parameters............            ║
  1338.             ║Compression File to add output to..............            ║
  1339.             ║                                                           ║
  1340.             ╚═══════════════════════════════════════════════════════════╝
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.           Default Output File Name
  1349.  
  1350.                Default name of file to send output.  When HPSORT runs, this
  1351.                is the file name used if no output file is present.  The
  1352.                default value is HPSORT.OUT.  
  1353.  
  1354.                This field can contain a device name.  For example if the
  1355.                value is COM1:, all output would by default goes to serial
  1356.                port #1.
  1357.  
  1358.                NOTE:     If the parameter to "Rename Output to Input" is
  1359.                          YES, then this parameter has no meaning.
  1360.  
  1361.           Rename Output file to Input file name
  1362.  
  1363.                If set to YES, HPSORT sends it's output  to a temporary
  1364.                file.  When HPSORT completes, the input file is renamed with
  1365.                a ".BAK" extension and the temporary output file will be
  1366.                renamed to the input file name.
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.                                                                          22
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.           Add Output File to Compressed file
  1385.  
  1386.                If you routinely use service bureaus to plot your drawings,
  1387.                these can be compressed by a programs such as ARC, PKXARC,
  1388.                LHARC, etc.  By setting this parameter to YES, HPSORT will
  1389.                automatically send the output file to the compression pro-
  1390.                gram.  The rest of the parameters, define how to pre-form
  1391.                this operation.
  1392.  
  1393.                WARNINGS: The output file name must be unique.  If
  1394.                          not, then the compressed file will con-
  1395.                          tain only the last file processed.  
  1396.  
  1397.           Compression File Name (must be pathed in)
  1398.  
  1399.                Name of you compression program to use.  Examples would be
  1400.                PKZIP, ARC or LHARC.  The program must be either in the
  1401.                current directory or path.
  1402.  
  1403.           Compression File Program parameters
  1404.  
  1405.                List of any commands required by the compression program to
  1406.                process the file.
  1407.  
  1408.           Compression File to add output to
  1409.  
  1410.                Name of compressed file to store data in.  This cannot be
  1411.                selected from the command line.
  1412.               
  1413.           4.3 Default Settings
  1414.  
  1415.           HP_CFG can automatically configure HPSORT for the listed software
  1416.           on the menu.  If the software that you use is not listed, then
  1417.           choose "Default CAD".  The settings should work for most
  1418.           packages.
  1419.  
  1420.           The "Default Serial Parameters" option configures the serial port
  1421.           for 9600 baud, no parity, 8 data bits and 1 stop bit.
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.                                                                          23
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.              ┌───────────────────────HPSORT Configuration Menu─────────────────────┐
  1447.                 │Edit  Default  Sort  Compress  Save  Quit                            │
  1448.                 └──────┌─────────────────────────┐────────────────────────────────────┘
  1449.                        │AutoCad                  │
  1450.                        │ORCAD                    │
  1451.                        │Point Line CADD          │
  1452.                        │Schema                   │
  1453.                        ├─────────────────────────┤
  1454.                        │Default CAD              │
  1455.                        │Default Serial Parameters│
  1456.                        └─────────────────────────┘
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.           4.4 Sort / Compress
  1463.  
  1464.           The primary purpose of HPSORT is the pen motion optimizing.  If
  1465.           your CAD package does do pen motion optimizing and wish only to
  1466.           compress the plot file, then select the "Compress" option on the
  1467.           menu.  
  1468.  
  1469.           In Compress mode, the plot file is not sorted.  It is split into
  1470.           lines and label commands.  Then each of these two sections are
  1471.           separately outputed in the order that the commands were read in.
  1472.  
  1473.           4.5 Save
  1474.  
  1475.           Stores parameters to file "HPSORT.CFG" in the current directory.
  1476.  
  1477.           4.6 Quit
  1478.  
  1479.           Exits configuration utility without save any parameters.  Use the
  1480.           "Save" command to save the parameters.
  1481.  
  1482.  
  1483.           5.0 Operation
  1484.  
  1485.           To execute HPSORT, type the following command line:
  1486.  
  1487.                      HPSORT "INPUT FILE NAME" "OUTPUT FILE NAME"
  1488.  
  1489.           INPUT FILE NAME     This is the name of the file to be processed.
  1490.  
  1491.           OUTPUT FILE NAME    This is an optional parameter that specifies
  1492.                               the where the sorted file is to be placed. 
  1493.                               Note if this value is not specified, then the
  1494.                               parameters in section 4.8 control output file
  1495.                               name.
  1496.  
  1497.  
  1498.                                                                          24
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.           HPSORT displays the following status messages when running -
  1507.  
  1508.           "Vector Buffer Full - XX%     How much memory is used while
  1509.                                         reading in the source file.
  1510.  
  1511.           "Number of Vectors - x,xxx"   This is the number of vectors that
  1512.                                         HPSORT is processing.
  1513.  
  1514.           "Vector Buffer Left - XX%"    Percentage of buffers left to sort
  1515.                                         and output.  Percent is comparing
  1516.                                         the number of vectors (lines) left
  1517.                                         with the number of vectors when
  1518.                                         this phase started..
  1519.  
  1520.           "Label Buffer Left - XX%"     Percentage of the label buffer left
  1521.                                         to sort and output.  Percent is
  1522.                                         comparing number of labels left
  1523.                                         with the number of labels when this
  1524.                                         phase was started.
  1525.  
  1526.           "Waiting for Output Queue to Empty"       This message appears only
  1527.                                         when Serial Port Output Buffer
  1528.                                         (Section 4.2.5) has been enabled
  1529.                                         and the output file was a COM port. 
  1530.                                         The next line contains the number
  1531.                                         of bytes left in the buffer to
  1532.                                         output.
  1533.           5.1 Theory of Operation
  1534.  
  1535.           The technical description of how HPSORT works is that it preforms
  1536.           a topological sort.  What this means is that it tries to minimize
  1537.           the overall pen motion.  HPSORT does not attempt to do the best
  1538.           possible sort.  What it does do is do, is a good sort quickly.
  1539.  
  1540.           HPSORT works under a self imposed time restriction.  The bench-
  1541.           mark time is a system where the plotter is directly connected to
  1542.           20mhz 386/387 computer system with 500kb free RAM.  HPSORT has
  1543.           perform the sort and send the results to the plotter in same
  1544.           amount of time than it takes MS-DOS COPY command to perform the
  1545.           same operation.  
  1546.  
  1547.           Doing the sort that it does do, plots will generally plot in 10%
  1548.           to 30%  (had one case of 54%) less time.  It was our judgement,
  1549.           that the processing time to get the best possible sort was not
  1550.           worth the plotting time saved.  Future versions of HPSORT will
  1551.           have improved routines both for processing speed and plotting
  1552.           speed.
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.                                                                          25
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.           In operation HPSORT has three separate phases:
  1568.  
  1569.                1    Read in the input plot file and decode it.
  1570.                2    Sort and output the lines, circles and arcs.
  1571.                3    Sort and output any text that uses the built in
  1572.                     plotter fonts.
  1573.  
  1574.           These three phases generally run in the order displayed. 
  1575.           Commands that flush the internal buffers (e.g., a pen change) or
  1576.           if the label or vector buffer fills up disrupt this order.
  1577.  
  1578.  
  1579.           5.2 HPSORT & Desqview
  1580.  
  1581.           When running HPSORT with Desqview, having a partition size of at
  1582.           least 320kb is required.  The more ram available to HPSORT the
  1583.           faster it will run.
  1584.  
  1585.           The only problem noticed is when HPSORT is running at the same
  1586.           time as your CAD package is.  As HPSORT is a compute intensive
  1587.           program, your CAD package will appear to slow down while HPSORT
  1588.           is running.
  1589.  
  1590.  
  1591.           6.0 problems
  1592.  
  1593.  
  1594.           Refer to the README file for a the list of known problems with
  1595.           this version.
  1596.  
  1597.           6.1 Error Messages
  1598.  
  1599.           HPSORT has three types of error messages.  In the first tow
  1600.           cases, the message includes text as to how to fix or work around
  1601.           the problem.
  1602.  
  1603.           CONFIGURATION -These messages occur when the HPSORT.CFG file and
  1604.                          the input file contain values that are in conflict
  1605.                          with each other.
  1606.  
  1607.           RUNTIME -      These messages occur when HPSORT cannot do some
  1608.                          operation.
  1609.  
  1610.           INTERNAL -     These messages occur when HPSORT detects an
  1611.                          internal error.  If you get one of these messages,
  1612.                          please contact the author (section 6.2).
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.                                                                          26
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.           6.2 Incompatibilities
  1629.  
  1630.           If HPSORT is not buffering serial output, there are no known
  1631.           incompatibilities.
  1632.  
  1633.           HPSORT may not operate properly when other background software is
  1634.           running and it is buffering serial output.  By other background
  1635.           software, we mean programs that are loaded in the CONFIG.SYS,or
  1636.           by a BAT file and remain in memory.  Certain screen clock pro-
  1637.           grams, for example, are known to interfere with serial port
  1638.           operations.
  1639.  
  1640.           Conflicts with HPSORT may not be caused by a single program, but
  1641.           by a combination of programs, which, taken singly, cause no
  1642.           problems.  Therefore, if you suspect some conflict, you should
  1643.           boot your system with only absolutely necessary device drivers
  1644.           and resident programs (i.e. a partitioned disk device driver). 
  1645.           Then add programs back in one at a time.
  1646.  
  1647.  
  1648.           6.3 How to contact CNT Software
  1649.  
  1650.           We have support for messages and technical support on JADE BBS at
  1651.           (608) 752-7840 When calling, set your modem up for 8 data bits,
  1652.           no parity and 1 stop bit.  Leave a private message for "Tom
  1653.           Thorp".
  1654.  
  1655.           If you need to send us your plot file for analysis, please send
  1656.           to:
  1657.                          CNT Software
  1658.                          1615 Highland Ave.
  1659.                          Janesville, Wis.  53545
  1660.  
  1661.           We use both 5 1/4 & 3 1/2 inch diskettes. Please include the
  1662.           following information:
  1663.  
  1664.                o    Version of HPSORT
  1665.                o    CAD or Graphics Program 
  1666.                o    Make and model of Plotter
  1667.                o    Version of DOS
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.                                                                          27
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.                                               Order Form
  1690.  
  1691.             INVOICE # 91-0331
  1692.  
  1693.             Remit To:
  1694.                         CNT Software
  1695.                         1615 Highland Ave
  1696.                         Janesville, Wisw3545
  1697.  
  1698.  
  1699.             Qty. Description                             Amount
  1700.  
  1701.             ____ HPSORT Registration                        $50.00 ea   __________
  1702.  
  1703.             ____ HPSORT Printed Manual                      $19.95 ea   __________
  1704.  
  1705.                  Shipping (see below)                                   __________
  1706.  
  1707.                  (Wis. residents add 5% sales tax)       Tax            __________
  1708.              
  1709.                                                                   Total __________
  1710.  
  1711.                            Purchase Orders less than $100 must be pre-paid.
  1712.  
  1713.             Name:       _____________________________________________________
  1714.  
  1715.             Company     _____________________________________________________
  1716.  
  1717.             Address:    _____________________________________________________ 
  1718.  
  1719.                         _____________________________________________________
  1720.  
  1721.                         _____________________________________________________
  1722.  
  1723.             Work Phone: (____)  ________________     
  1724.  
  1725.             Home Phone: (____)  ________________
  1726.  
  1727.             Comments:   ____________________________________________________
  1728.  
  1729.                         ____________________________________________________
  1730.  
  1731.                         ____________________________________________________
  1732.  
  1733.                         ____________________________________________________
  1734.  
  1735.             Note: Shipping to 48 continental states is $5.00.  Alaska, Hawaii, and Canada
  1736.                   is $10.00.  Other countries, please call before ordering. 
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.                                                                                         28
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.             Site License Information
  1752.  
  1753.             If you plan on using HPSORT in a corporation, government office, or for any
  1754.             business purpose whatsoever, registration is mandatory and the 90 day limited
  1755.             license is strictly enforced.  Quantity discounts are available under a Site
  1756.             License agreement:
  1757.  
  1758.  
  1759.                   One MASTER copy of HPSORT disc per site is supplied and one copy
  1760.                   of the manual is supplied per user.
  1761.  
  1762.                   For all site licenses, the customer must appoint a single contact
  1763.                   person with whom all HPSORT related dealings will take place. 
  1764.                   Should a problem occur, that person, must  report the problem and
  1765.                   arrange for its resolution.  All HPSORT program updates will be
  1766.                   forwarded to the contact person.  When filling out the order form,
  1767.                   please use the contact person's name to prevent any later
  1768.                   misunderstandings.
  1769.  
  1770.                                    Site license discount rates are:
  1771.  
  1772.  
  1773.                                 Total Copies         Discount per Unit
  1774.                                    2 to 10                  20%
  1775.  
  1776.                                   11 to 50                  40%
  1777.  
  1778.                                      51+                    50%
  1779.  
  1780.  
  1781.  
  1782.             NOTE:       All prices and discounts are subject to change without notice.
  1783.                         Discounts are not cumulative.  They apply to separate orders only.
  1784.               
  1785.  
  1786.               
  1787.               
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.                                                                                         29
  1804.